package cn.huolabao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 租户表
    */
@ApiModel(value="cn-huolabao-model-SysTenant")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_tenant")
public class SysTenant implements Serializable {
    /**
     * 租户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="租户ID")
    private Integer id;

    /**
     * 租户名称
     */
    @TableField(value = "tenant_name")
    @ApiModelProperty(value="租户名称")
    private String tenantName;

    /**
     * 域名地址
     */
    @TableField(value = "`domain`")
    @ApiModelProperty(value="域名地址")
    private String domain;

    /**
     * 联系人
     */
    @TableField(value = "contacts")
    @ApiModelProperty(value="联系人")
    private String contacts;

    /**
     * 联系电话
     */
    @TableField(value = "contact_number")
    @ApiModelProperty(value="联系电话")
    private String contactNumber;

    /**
     * 联系地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value="联系地址")
    private String address;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="修改时间")
    private Date updateTime;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态")
    private Integer status;

    /**
     * 是否已删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否已删除")
    private Integer isDelete;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_TENANT_NAME = "tenant_name";

    public static final String COL_DOMAIN = "domain";

    public static final String COL_CONTACTS = "contacts";

    public static final String COL_CONTACT_NUMBER = "contact_number";

    public static final String COL_ADDRESS = "address";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_DELETE = "is_delete";
}